package test1.shapes;

public class Point {
    int x;
    int y;
    public Point(int x1,int y1)
    {
        x=x1;
        y=y1;
    }
    public double distanceTo(Point p)
    {
        int n=(p.x-x)*(p.x-x)+(p.y-y)*(p.y-y);
        return Math.sqrt(n);
    }
}